import javax.swing.plaf.TableHeaderUI;

public class Demo4 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i <3 ; i++) {
                    System.out.println("内部类线程");
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }
        });
        t.start();
        for (int i = 0; i <3 ; i++) {
            System.out.println("main线程");
            Thread.sleep(1000);
        }
    }
}
